﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>微街秀 > 登录</title>

</head>
<body>

    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script>
        $(function () {
            var ua = navigator.userAgent.toLowerCase();
            var isWeixin = ua.indexOf('micromessenger') != -1;
            if (!isWeixin) {
                document.head.innerHTML = '<title>抱歉，出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/connect/zh_CN/htmledition/style/wap_err1a9853.css">';
                document.body.innerHTML = '<div class=\"page_msg\"><div class=\"inner\"><span class=\"msg_icon_wrp\"><i class=\"icon80_smile\"></i></span><div class=\"msg_content\">请在微信客户端打开链接</div></div></div>';
            }
            Oauth();

        });
        function Oauth() {
            var action = getUrlArgStr("action");
            var token = getUrlArgStr("token");
            var userid = getUrlArgStr("user_id");
            var parentid = getUrlArgStr("parentid");
            var code = getUrlArgStr("code");
            if (code === "1005" || (action === "oauth" && userid === "")) {
                Alert("您的账户已停用");
                return;
            }
            delCookie('a');
            delSession('a');
            if (action === "oauth" && token !== "" && userid !== "") {
                GoPage(2, userid, token, parentid);
                return;
            }
            window.location.href = '/client2/oauth/wxlogin.ashx?login';//直接启用微信登录
        }
    </script>
</body>
</html>
